From 978352c0482ec2236900047ae5fa9314e2425528 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 31 Mar 2023 10:37:08 -0600 Subject: [PATCH] use 6 digits after the decimal point for osm_name_from_wpt. (#1053) I beleive this restores the behavior from before commit 4673a25, August 4, 2013. This should resolve #1047. --- osm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm.cc b/osm.cc index dbd44cd46..5e3691d0e 100644 --- a/osm.cc +++ b/osm.cc @@ -692,8 +692,8 @@ OsmFormat::osm_name_from_wpt(const Waypoint* waypoint) { QString name = QString("%1\01%2\01%3") .arg(waypoint->shortname) - .arg(waypoint->latitude) - .arg(waypoint->longitude); + .arg(waypoint->latitude, 0, 'f', 6) + .arg(waypoint->longitude, 0, 'f', 6); return name; } -- 2.30.2